@extends('layout.app')
@section('title', '')
@section('content')
    <!-- breadcumb area -->
    <div class="breadcumb-area">
        <div class="container">
            <div class="row">
                <div class="col-md-12 txtc  text-center ccase">
                    <div class="brpt">
                        <h2>新闻</h2>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- End breadcumb area -->
    <!-- blog-left-side widget -->
    <div class="witr-blog-side-area blog_sidebar">
        <div class="container">
            <div class="row">

                {{--左侧--}}
                <div class="col-lg-4 col-md-5 col-sm-12 col-xs-12 sidebar-right content-widget pdsl">
                    <div class="blog-left-side widget">
                          {{--推荐新闻--}}
                      {{--  <div class="widget widget_recent_data">
                            <div class="single-widget-item">
                                <h2 class="widget-title">New</h2>
                                <div class="recent-post-item">
                                    <div class="recent-post-image">
                                        <a href="#"><img src="static/picture/f1.jpg" alt="image"></a>
                                    </div>
                                    <div class="recent-post-text">
                                        <h4><a href="#">The Way To Avoid New Construction</a></h4>
                                        <span class="rcomment">April 6, 2023</span>
                                    </div>
                                </div>
                                <div class="recent-post-item">
                                    <div class="recent-post-image">
                                        <a href="#"><img src="static/picture/f2.jpg" alt="image"></a>
                                    </div>
                                    <div class="recent-post-text">
                                        <h4><a href="#">Within the construction industry as their overdraft</a></h4>
                                        <span class="rcomment">April 6, 2023</span>
                                    </div>
                                </div>
                                <div class="recent-post-item">
                                    <div class="recent-post-image">
                                        <a href="#"><img src="static/picture/f3.jpg" alt="image"></a>
                                    </div>
                                    <div class="recent-post-text">
                                        <h4><a href="#">Questions business must able to answer</a></h4>
                                        <span class="rcomment">April 6, 2023</span>
                                    </div>
                                </div>
                            </div>
                        </div>--}}

                        <div class="widget widget_categories">
                            <h2 class="widget-title">分类</h2>
                            <ul>
                                <li><a href="#">全部</a></li>

                                @foreach($categories as $cat)
                                    <li><a href="{{route('news',['id'=>$cat['id']])}}">{{$cat['name']}}</a></li>
                                @endforeach

                            </ul>
                        </div>


                    </div>
                </div>

                {{--右侧--}}
                <div class="col-lg-8 col-md-7 col-sm-12 col-xs-12">
                    <div class="row">

                        @foreach($articleContents as $art)
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="solarsun-single-blog solarsun-lt">
                                <!-- BLOG THUMB -->
                                <div class="solarsun-blog-thumb">
                                    <a href="single-blog.html">
                                        <img src="{{$art->cover}}" alt="image">
                                    </a>
                                </div>
                                <div class="em-blog-content-area">
                                    <div class="solarsun-blog-meta post_blog">
                                        <h2><a href="single-blog.html">{{$art->title}}</a></h2>
                                        <div class="solarsun-blog-meta">
                                            <div class="solarsun-blog-meta-left">
                                                {{$art->create_time->format('Y-m-d')}}
                                            </div>
                                        </div>
                                    </div>
                                    <!-- BLOG TITLE AND CONTENT -->
                                    <div class="blog-inner">
                                        <div class="blog-content">
                                            <p>{{$art->guide}} </p>
                                        </div>
                                    </div>
                                    <div class="witr_btn_sinner">
                                        <a href="#" class="witr_btn">Read More</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
    </div>


@stop





